package org.weso.desempleo.services.to;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.weso.desempleo.to.MunicipalityStatsTO;

@XmlRootElement(name = "listMunicipalityStatsTO")
@XmlAccessorType(XmlAccessType.PROPERTY)
@XmlType(name = "listMunicipalityStatsTO", propOrder = {
})
public class ListMunicipalityStatsTO {
	
	private List<MunicipalityStatsTO> items;

	public List<MunicipalityStatsTO> getMunicipalities() {
		return items;
	}
	
	public ListMunicipalityStatsTO() {
		items = new LinkedList<MunicipalityStatsTO>();
	}
	
	public ListMunicipalityStatsTO(List<MunicipalityStatsTO> stats) {
		this.items = stats;
	}
	
	
	
	public List<MunicipalityStatsTO> getItems() {
		return items;
	}

	public void setItems(List<MunicipalityStatsTO> items) {
		this.items = items;
	}

	public void add(MunicipalityStatsTO municipality) {
		items.add(municipality);
	}
}
